;; 一些基础的扩展的加载
(tabbar-mode) ;; tabbar，筷子级插件
;; 快捷键绑定，没汗吧……
(global-set-key (kbd "<f2>") 'tabbar-backward)
(global-set-key (kbd "<f3>") 'tabbar-forward)
(global-set-key (kbd "<C-f2>") 'tabbar-backward-group)
(global-set-key (kbd "<C-f3>") 'tabbar-forward-group)
;; 设置tabbar外观  
    ;; 设置默认主题: 字体, 背景和前景颜色，大小  
    (set-face-attribute 'tabbar-default nil  
                        :family "DejaVu Sans Mono"  
                        :background "gray80"  
                        :foreground "gray30"  
                        :height 1.0  
                        )  
    ;; 设置左边按钮外观：外框框边大小和颜色  
    (set-face-attribute 'tabbar-button nil  
                        :inherit 'tabbar-default  
                        :box '(:line-width 1 :color "yellow70")  
                        )  
    ;; 设置当前tab外观：颜色，字体，外框大小和颜色  
    (set-face-attribute 'tabbar-selected nil  
                        :inherit 'tabbar-default  
                        :foreground "DarkGreen"  
                        :background "LightGoldenrod"  
                        :box '(:line-width 2 :color "DarkGoldenrod")  
                        :overline "black"  
                        :underline "black"  
                        :weight 'bold  
                        )  
    ;; 设置非当前tab外观：外框大小和颜色  
    (set-face-attribute 'tabbar-unselected nil  
                        :inherit 'tabbar-default  
                        :box '(:line-width 2 :color "#00B2BF")  
    )
(global-set-key (kbd "C-x C-b") 'ibuffer) ;; 一个漂亮而强大的buffer list
(ido-mode t) ;; 强大的切换buffer，寻找文件的扩展
(add-hook 'after-init-hook 'session-initialize) ;; 可以保存全局变量的扩展
(global-set-key (kbd "C-c k")
		'browse-kill-ring)  ;; kill-ring浏览器
(browse-kill-ring-default-keybindings) ;; 启动 browse-kill-ring 的默认快捷键绑定
(smex-initialize) ;; 强大的 M-x 补全
(global-set-key (kbd "M-x") 'smex)
(global-set-key (kbd "M-X") 'smex-major-mode-commands)
(global-set-key (kbd "C-c C-c M-x") 'execute-extended-command) ;; 从前的M-x
(global-set-key (kbd "C-x C-j") 'direx:jump-to-directory) ;; direx，美观的dired


(provide 'basic)
